<?php

namespace models;

class mapagoogleModel extends \libs\model{
    
    private $_tabela = "aktualnosci";
    
    protected $_test;
    
    public function index() 
    {
        $db = $this->getDb();
        
        $query = 'SELECT * FROM '.$this->_tabela;
        
        $result = $db->query($query);
        
        while($this->view->news[] = $result->fetch_assoc()) {}
        
        $this->view->render(__METHOD__);
    }
    
    
}
